x86: don't allow page_unlock() to drop the last type reference
authorJan Beulich <jbeulich@suse.com>
Wed, 27 Sep 2017 10:00:56 +0000 (11:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Oct 2017 12:49:46 +0000 (14:49 +0200)
commit6410733a8a0dff2fe581338ff631670cf91889db
tree678066ca0a8a7a5100bb822fa17588896aa52921
parent23a183607a427572185fc51c76cc5ab11c00c4cc
x86: don't allow page_unlock() to drop the last type reference

Only _put_page_type() does the necessary cleanup, and hence not all
domain pages can be released during guest cleanup (leaving around
zombie domains) if we get this wrong.

This is XSA-242.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c